<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .father{
            width: 600px;
            height: 400px;
            margin: auto;
            outline: 2px solid red;
            position: relative;
            overflow: hidden;
        }
        .img-box{
            height: 400px;
            position: absolute;
            left: 0;
            top: 0;
            display: flex;
            transition: all 1s;
        }
        .img-box img{
            width: 600px;
            height: 400px;
        }

        .arrow{
            width: 50px;
            height: 50px;
            background-color: rgba(255, 255, 255, .5);
            border-radius: 5px;
            text-align: center;
            line-height: 50px;
            font-size: 20px;
            color: white;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }
        .arrow:hover{
            background-color:rgba(255, 255, 255, .8) ;
        }

        .pre{
            left: 0;
        }
        .next{
            right: 0;
        }

        /* 小圆点 */
        .dotted{
            width: 100%;
            height: 20px;
            position: absolute;
            bottom: 10px;
            left: 0;
            display: flex;
            justify-content: center;
        }
        .dotted li{
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color:rgba(255, 255, 255, .5) ;
            text-align: center;
            line-height: 20px;
            list-style: none;
            margin: 0px 5px;
            color: rgba(255, 255, 255, 0);
        }
        .dotted li:hover{
            background-color:rgba(255, 255, 255, .8) ;
        }

        .max{
            transform: scale(1.5);
        }
    </style>
</head>
<body>
    <div class="father">
        <!-- 图片盒子 -->
        <div class="img-box">
            <!-- <img src="./imgs/1.jpeg" alt="">
            <img src="./imgs/1.jpeg" alt="">
            <img src="./imgs/1.jpeg" alt="">
            <img src="./imgs/1.jpeg" alt="">
            <img src="./imgs/1.jpeg" alt=""> -->
        </div>
        <!-- 左箭头 -->
        <div class="arrow pre"> &lt; </div>
        <!-- 右箭头 -->
        <div class="arrow next"> &gt; </div>
        <!-- 小圆点 -->
        <ul class="dotted">
            <!-- <li>0</li>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li> -->
        </ul>
    </div>
    

    <script src="./index.js"></script>
</body>
</html>